package edu.ycxy.poetry.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import edu.ycxy.poetry.entity.Writer;
import edu.ycxy.poetry.vo.AddPoetsVo;
import edu.ycxy.poetry.vo.UpdatePoetVo;

/**
 * @Author @xin
 * @createDate 2022/3/8
 * @Description
 */
public interface IWriterService extends IService<Writer> {

    Writer findWriter(String WriterName);

    //查询作者的信息
    PageInfo<Writer> selectListAuthor(Integer pageNum, Integer pageSize);

    //根据作者的朝代信息查询相关的作者
    PageInfo<Writer> selectListByName(String DyName,Integer pageNum,Integer pageSize);

    // 添加作者的详细信息
    Integer addPoets(AddPoetsVo addPoetsVo);

    //模糊查询作者的信息
    PageInfo<Writer> findListByName(String name,Integer pageNum,Integer pageSize);

    // 删除诗人
    void deleteById(Integer id);

    Writer findOneById(Integer id);

    Integer updatePoet(UpdatePoetVo updatePoetVo);
}
